package com.zdy.socketserver;

import com.zdy.socketserver.client.ClientType;
import com.zdy.socketserver.client.NettyClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;
import javax.net.ssl.SSLException;
import java.net.URISyntaxException;

@SpringBootApplication
@EnableScheduling
public class SocketServerApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SocketServerApplication.class, args);
        NettyClient client = context.getBean(NettyClient.class);
        client.initClient();
    }
}
